#include "TcpServer.h"

int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        printf("using: ./main ip port\n");
        printf("example: ./main 192.168.136.137 45545\n");
        return -1;
    }
    // 创建服务器实例
    TcpServer *srv = new TcpServer();
    // 开始监听
    srv->listen(argv[1], atoi(argv[2]));
    return 0;
}